home *** CD-ROM | disk | FTP | other *** search
/ ETO Development Tools 1 / ETO Development Tools 1.iso / Essentials / MacApp Documentation / MacApp AppleLink Messages / MacApp.Tech$ Oct 89 / Z0197-Re C++ VMT implemen-Oct89 < prev    next >
Encoding:
Text File  |  1989-10-27  |  1.2 KB  |  34 lines  |  [TEXT/GEOL]

  1. Item    7291757                         27-Oct-89        09:12
  2.  
  3. From:   D2079                           Arthur Anderson, M Lockwood,PRT
  4.  
  5. To:     UK0310                          Paul G Smith
  6.  
  7. cc:     MACAPP.TECH$                    MACAPP Tech
  8.  
  9. Sub:    Re: C++ VMT implementation?
  10.  
  11. Paul,
  12.  
  13. MPW C++ has several extensions to support compatibility with Object pascal and
  14. MacApp.  One of these is a class called PascalObject.  Any descendant of
  15. PascalObject uses the same method dispatching technique as Object Pascal.
  16. Other objects use the C++ method of dispatching.  MPW C++ 3.1b1 is shipped with
  17. .h header files that define all the MacApp classes as descendants of
  18. PascalObject.
  19.  
  20. MPW C++ also allows you to declare C++ methods so they will use pascal calling
  21. conventions using the "pascal" keyword.  If you declare objects to be a
  22. descendant of TObject (which is a descendant of PascalObject) and use pascal
  23. calling conventions for your methods, your C++ code will look just like Object
  24. Pascal to the linker.
  25.  
  26. One limitation:  Multiple inheritance does not work with handle based objects.
  27. Therefore, C++ does put multiple inheritance in the hands of Mac programmers
  28. but does not add multiple inheritance to MacApp.
  29.  
  30. Mike Lockwood
  31. Andersen Consulting
  32.  
  33.  
  34.